<div class="col-sm-12">
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="col-lg-3">
				<div class="input-group">
					<span class="input-group-addon">
						<input type="checkbox" ng-model="searchform.usedate" ng-true-value="1" ng-false-value="0">出游时间
					</span>
					<input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" 
						is-open="date.opened" readonly close-text="关闭" current-text="今天" clear-text="清除" />
					<span class="input-group-btn">
						<button type="button" class="btn btn-default" ng-click="dateOpen($event, date)">
							<i class="glyphicon glyphicon-calendar"></i>
						</button>
					</span>
				</div>
			</div>
			<div class="col-lg-2">
				<input type="text" class="form-control" ng-model="searchform.guide_name" placeholder="导游姓名">
			</div>
			<div class="col-lg-2">
				<input type="text" class="form-control" ng-model="searchform.guide_mobile" placeholder="导游电话">
			</div>
			<div class="col-lg-2">
				<select class="form-control" ng-model="searchform.orderstate">
					<option value="0">全部订单</option>
					<option value="1">已出票订单</option>
					<option value="2">待交款订单</option>
					<option value="3">已删除订单</option>
				</select>
			</div>
			<div class="col-lg-1" style="padding: 0px">
				<button type="button" class="btn btn-success search" ng-click="load()">立即搜索</button>
			</div>
			<!-- <div class="col-lg-2">
				<button type="button" class="btn btn-info btn-block" ng-click="create()">创建团</button>
			</div> -->
		</div>
	</div>

	<div class="panel panel-default">
		<div class="panel-body">
			<table class="table table-bordered">
			  <thead>
	        <tr>
	          <th class="text-center" style="width: 20%">出游信息</th>
	          <th class="text-center" style="width: 28%">预定团票</th>
	          <th class="text-center" style="width: 15%">导游信息</th>
	          <th class="text-center" style="width: 13%">备注</th>
	          <th class="text-center" style="width: 12%;">最后操作</th>
	          <th class="text-center" style="width: 12%">操作</th>
	        </tr>
	      </thead>
	      <tbody>
					<tr ng-repeat="obj in objs">
	          <td class="text-center">
							计划人数：[{{obj.plan_count}}人]<br>
	        	  预订人数：[{{obj.book_count}}人]<br>
	        	  实际人数：[{{obj.actual_count}}人]<br>
	        	  到达时间：[{{obj.arrival_date}}]
	          </td>
	          <td class="">
	        	  {{obj.order_name}}<br>
	        	  [订单编号][{{obj.code}}]
	          </td>
	          <td class="text-center">
	        	  [{{obj.guide_name}}]<br>
	        	  [{{obj.guide_mobile}}]<br>
	        	  [{{obj.vehicle_number}}]<br>
	        	  [团票码][{{obj.ticket_code}}]
	          </td>
	          <td class="text-center">{{obj.remark}}</td>
	          <td class="text-center">
	        	  {{obj.update_by}}<br>
				  {{obj.update_time | limitTo : 10}}<br/>
				  {{obj.update_time.substring(11)}}
	          </td>
			      <td class="text-center">
				      <div ng-show="obj.del_flg=='0'">
					      <div ng-show="obj.state=='0' && obj.xx=='0'">
						      <a ng-click="signup(obj)" class="btn btn-warning btn-xs">预订</a>
						      <a ng-click="edit(obj)" class="btn btn-success btn-xs">编辑</a>
			          </div>
			          <a ng-click="outticket(obj.code)" ng-show="obj.outstate=='0' && obj.book_count>0" class="btn btn-primary btn-xs">出票确认</a>
			          <a ng-click="detail(obj.code)" class="btn btn-info btn-xs">查询纪录</a>
			          <a ng-click="info(obj)" class="btn btn-warning btn-xs">修改订单</a>
			          <!-- <a ng-click="print()" class="btn btn-info btn-sm" ng-show="obj.outstate == '1' ">打印</a> -->
			          <a ng-click="del(obj.code)" ng-show="obj.outstate=='0'" class="btn btn-danger btn-xs">删除订单</a>
		          </div>
		          <div ng-show="obj.del_flg=='1'">
			          <a ng-click="recovery(obj.code)" class="btn btn-warning btn-xs">恢复订单</a>
		          </div>
	          </td>
	        </tr>
			  </tbody>
			</table>

			<div class="text-right">
				<pagination total-items="bigTotalItems" ng-model="bigCurrentPage" max-size="5" class="pagination-sm" 
			 	 boundary-links="true" ng-change="load()" items-per-page="itemsPerPage" previous-text="上一页" next-text="下一页" 
			 	 first-text="首页" last-text="末页" rotate="false">
	    	</pagination>
	  	</div>
		</div>
	</div>
  
</div>
